package com.class05.service.impl;

import com.class05.mapper.EmployeeDao;
import com.class05.pojo.Employee;
import com.class05.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2023/12/21 16:15
 */
@Service
public class EmployeeServiceImpl implements EmployeeService {
    @Autowired
    private EmployeeDao employeeDao;
    @Override
    public List<Employee> findAll() {
        List<Employee> employees = employeeDao.queryList();
        return employees;
    }
}
